<?php

namespace app\api\controller\ai;

use app\common\controller\BaseController;
use app\common\service\ai\VideoService;
use hg\apidoc\annotation as Apidoc;

/**
 * @Apidoc\Title("视频管理")
 * @Apidoc\Group("ai")
 * @Apidoc\Sort("300")
 */
class Video extends BaseController {
    
    /**
     * 表名
     * @static string
     */
    protected static $table = 'video';

    /**
     * @Apidoc\Title("列表")
     * @Apidoc\Param(ref="app\common\model\ai\VideoModel", field="member_id,type")
     * @Apidoc\Returned("list", type="array", desc="列表", children={
     * @Apidoc\Returned(ref="app\common\model\ai\VideoModel", withoutField="sdc"),
     * })
     */
    public function getList() {
        $list = VideoService::getList($this->data);
        return success($list);
    }

}
